package com.example.spring.multi;


import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableAspectJAutoProxy //开启aop切面
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)//排除druid数据源自动配置
@MapperScan("com.example.spring.multi.module.logic.dao")
//@SpringBootApplication
public class SpringMultiApplication {

	public static void main(String[] args) {

		 SpringApplication.run(SpringMultiApplication.class, args);
//		ApplicationContext applicationContext = SpringApplication.run(SpringMultiApplication.class, args);
//		applicationContext.publishEvent(new PayApplicationEvent(applicationContext,"成功支付100元！"));

	}

}
